package com.xyhy.core.file.oss.aliyun;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import com.xyhy.core.file.oss.EOssType;

/**
 * @author robert
 * @since 2024-12-05
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel("文件：oss：文件上传：上传结果类")
public class FileUploadResVO<T> {

  @ApiModelProperty("上传的文件Id")
  private Long fileId;

  @ApiModelProperty("文件上传提供者")
  private EOssType provider;

  @ApiModelProperty("不同文件服务提供者需要的数据")
  private T providerParams;

  @ApiModelProperty("上传文件的路径")
  private String path;

  @ApiModelProperty("上传的文件名")
  private String name;

  @ApiModelProperty("上传的文件url")
  private String url;

}
